/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.pancho;

import java.io.Serializable;
public class Diagnose implements Serializable {
	public Diagnose() {
	}
	
	private int idDiag;
	
	private String diagnostico;
	
	private com.pancho.BabyMonitor babyMonitorCodSystem;
	
	private com.pancho.Pacient pacientidPaciente;
	
	private com.pancho.Solution solution;
	
	private void setIdDiag(int value) {
		this.idDiag = value;
	}
	
	public int getIdDiag() {
		return idDiag;
	}
	
	public int getORMID() {
		return getIdDiag();
	}
	
	public void setDiagnostico(String value) {
		this.diagnostico = value;
	}
	
	public String getDiagnostico() {
		return diagnostico;
	}
	
	public void setBabyMonitorCodSystem(com.pancho.BabyMonitor value) {
		if (this.babyMonitorCodSystem != value) {
			com.pancho.BabyMonitor lbabyMonitorCodSystem = this.babyMonitorCodSystem;
			this.babyMonitorCodSystem = value;
			if (value != null) {
				babyMonitorCodSystem.setDiagnose(this);
			}
			else {
				lbabyMonitorCodSystem.setDiagnose(null);
			}
		}
	}
	
	public com.pancho.BabyMonitor getBabyMonitorCodSystem() {
		return babyMonitorCodSystem;
	}
	
	public void setPacientidPaciente(com.pancho.Pacient value) {
		if (this.pacientidPaciente != value) {
			com.pancho.Pacient lpacientidPaciente = this.pacientidPaciente;
			this.pacientidPaciente = value;
			if (value != null) {
				pacientidPaciente.setDiagnose(this);
			}
			else {
				lpacientidPaciente.setDiagnose(null);
			}
		}
	}
	
	public com.pancho.Pacient getPacientidPaciente() {
		return pacientidPaciente;
	}
	
	public void setSolution(com.pancho.Solution value) {
		if (this.solution != value) {
			com.pancho.Solution lsolution = this.solution;
			this.solution = value;
			if (value != null) {
				solution.setDiagnoseidDiag(this);
			}
			else {
				lsolution.setDiagnoseidDiag(null);
			}
		}
	}
	
	public com.pancho.Solution getSolution() {
		return solution;
	}
	
	public String toString() {
		return String.valueOf(getIdDiag());
	}
	
}
